﻿
<script type="text/javascript" src="__PUBLIC__/Js/jgsat.js"></script>
<!-- banner -->
<div class="ba2">
      <div class="slideBox2" >

          <YP:flash flashid="30" key="kid" />

      </div>
      <script type="text/javascript">
      //  baner一闪一闪   jQuery(".slideBox2").slide({mainCell:".bd ul",autoPlay:true});
      //  baner不闪
            jQuery(".slideBox2").slide({mainCell:".bd ul",effect:"leftLoop",autoPlay:true,delayTime:1000});
      </script>
</div>

<!-- 登记 -->
<div class="auto">
    <div class="dj">

      <div class="skt2">
          <p class="f">发布需求</p>
          <p class="b"><YP:block pos="fabu" /></p>
      </div>

          <form  id="myform2" method="post"  action="/index.php?g=User&m=Guestbook&a=insert" >
          <input name="modulename" value="Guestbook" type="hidden">
          <input  name="sjsid" id="sjs"  type="hidden" value="{$designid}"/>
          <input  name="mobileyzm" class="verify"  type="hidden" value=" "/>
             <div class="service-input">
                <ul>
                    <li>
                    <div class="txtu"><img src="../Public/images/z1.png" width="35" height="30"></div>
                    <input placeholder="您的称呼" type="text" name="title" id="use" class="service-input-i" >
                    </li>

                    <li>
                    <div class="txtu"><img src="../Public/images/z2.png" width="35" height="30"></div>
                    <input placeholder="您的电话" type="text" name="telephone" id="telephone" class="service-input-i" >
                    </li>

                    <li>
                    <div class="txtu"><img src="../Public/images/z3.png" width="35" height="30"></div>

                     <select  class="wz_r2" name="bprovince" id="bprovince" onchange="area_change(this.value, 1,'bprovince','bcity','barea');" class="selt mr5" >
                       <option value="0">省份</option>
                     </select>
                    </li>

                    <li>
                    <div class="txtu"><img src="../Public/images/z3.png" width="35" height="30"></div>

                       <select class="wz_r2" name="bcity" onchange="area_change(this.value, 2,'bprovince','bcity','barea');" id="bcity" class="selt mr5" >
                         <option value="0">城市</option>
                       </select>
                       <script>area_change(0, 0,'bprovince','bcity','barea',0,0,0);</script>

                    <i class="glyphicon glyphicon-menu-right colorgray"></i>
                    </li>

                    <li>
                      <div class="txtu"><img src="../Public/images/z4.png" width="35" height="30"></div>
                      <select  class="wz_r2" id="itemType" name="itemType" >
                      <option value="0">项目类型</option>

                        <YP:list name="Label" where="genre=17" order="listorder asc" id="r" limit="50">
                            <option value="{$r['title']}">{$r['title']}</option>
                        </YP:list>
                      </select>
                    </li>

                    <li>
                      <div class="txtu"><img src="../Public/images/z9.png" width="35" height="30"></div>
                      <select  class="wz_r2" id="itemArea" name="itemArea" >
                      <option value="0">项目面积</option>
                        <YP:list name="Label" where="genre=18" order="listorder asc" id="r" limit="50">
                            <option value="{$r['title']}">{$r['title']}</option>
                        </YP:list>
                      </select>
                    </li>

                    <li>
                    <div class="txtu"><img src="../Public/images/z5.png" width="35" height="30"></div>
                  <select  class="wz_r2" id="budget"  name="budget" >
                  <option value="0">项目预算</option>
                        <YP:list name="Label" where="genre=19" order="listorder asc" id="r" limit="50">
                            <option value="{$r['title']}">{$r['title']}</option>
                        </YP:list>
                  </select>
                    </li>

                    <li class="tekk">
                    <span>方便联系时间：</span>
                    <div class="txtu time"><img src="../Public/images/z6.png" width="35" height="30"></div>
					  <select id="time_up" name="time_up" >
					  <option value="0">请选择</option>
					  <?php for($i=8;$i<=21;$i++){?>
					  <option value="<?php echo $i?>"><?php echo $i?>:00</option>
					  <?php }?>
					  </select>
					  <span>至</span>
					  <select id="time_mp" name="time_mp" >
					  <option value="0">请选择</option>
					  </select>

                    </li>

                    <li>
                    <div class="txtu"><img src="../Public/images/z7.png" width="35" height="30"></div>
                    <input placeholder="备注(选填)" type="text" name="content" class="service-input-i" >
                    </li>

                </ul>


                    <div class="about22aa">
                        <input class="about22a"  id="yam_ff" type="button"  onclick="aaa('myform2')" value="OK" />
                    </div>
                  </form>
    </div>
</div></div>


<!-- 小导航 -->
<div class="dhx">
  <div class="auto">
    <div class="rhz1">
        <a href="?m=Case&a=index&id=1">
          <div class="r1" ></div>
          <p>游览真实设计师案例</p>
          <span>(10万设计的原创作品)</span>
        </a>
    </div>
    <div class="rhz1">
         <a href="index.php?m=Case&a=index&id=2"> <div class="r2" ></div>
      <p>浏览前沿设计效果图</p>
      <span>(这里有全国最新最全的餐饮设计效果图)</span>
      </a>
    </div>
    <div class="rhz1">
        <a href="index.php?m=Yuyue&a=index&id=4">   <div class="r3" ></div>
      <p>找到满意的设计师</p>
      <span>(全国332个城市的设计师云集于此)</span>
    </div></a>
    <div class="rhz1 zwen">
           <a href="index.php?g=Home&m=Zforum_theme&a=forumlist&id=7&plateid=2"><div class="r4" ></div>
      <p>装修疑问尽管问</p>
      <span>(每秒钟都有设计师在线)</span>
    </div>    </a>


  </div>
</div>

<div class="xgtk">

<!-- 设计案例 -->
<div class="auto">
    <div class="tkbt">
      <div class="tkbb">
        <a>设计案例</a>
        <span>已为<?php echo  M('Case')->where('catid=1')->order('hits desc')->limit('1000')->sum('hits') ?>位业主查看真实案例</span>
      </div>

      <div class="tkbb3">
          <ul id="titssc" class="titssc">
            <YP:list name="Label" where="genre=17" posid="1" order="listorder asc" id="r" key="k" limit="6">
               <li  onmouseover="settac({$k})" <?php if($k==1){ ?> class="cur"<?php } ?> >{$r['title']}</li>
            </YP:list>
              <a  href="index.php?m=Case&a=index&id=1" class="more">更多 ></a>
              <div style="clear:both;"></div>
          </ul>
      </div>
    </div>

</div>

<div class="sjal">
  <div class="auto">
<!-- 2 -->
   <YP:list name="Label" where="genre=17" posid="1" order="listorder asc" id="r" key="k" limit="6">
    <div id="conc_<?php echo $k?>">
     <?php
     $field='jg_case.id,jg_case.pic,jg_case.title,jg_case.status,jg_case.posid,jg_user.id as userid,jg_user.avatar,jg_user.my_introduce,jg_user.username as un';
     $where='jg_case.`itemType`='.$r['id'].' and jg_case.`status`=1 and jg_case.catid=1 and jg_case.`posid`=1';
     $reluts=M('Case')->field($field)->where($where)->join('jg_user ON jg_case.userid = jg_user.id')->order("jg_case.pos_time desc")->limit('4')->select();
        //echo M('Case')->getLastSql();exit;
        ?>
  <!-- 1 -->
     <?php foreach($reluts as $key=>$val){ ?>
      <div class="al1" <?php if($key==1 || $key==3){ ?>style="margin-right: 0px;"<?php }?> >
            <ul>
                <li>
                    <div class="li_img"><a href="/index.php?m=Case&a=show&id=<?php echo $val['id']?>"><img src="<?php echo $val['pic']?>" width="367" height="220"/></a></div>
                      <span class="span"><a href="/index.php?m=Case&a=show&id=<?php echo $val['id']?>"><?php echo mb_strcut($val['title'],0,30)?></a></span>
                  </li>
              </ul>
              <div class="altx">
                <div class="tx1"><a href="index.php?m=User&a=index&id={$val.userid}"><img width="80" class="yuan" height="80" style="border-radius: 100%;" src="<?php echo $val['avatar']?>"></a></div>
                <div class="tx3"><p><?php echo $val['un']?></p></div>
               </div>
               <div class="tx2" style="word-break: break-all;">{$val['my_introduce']|str_cut=###,100}</div>

      </div>
     <?php  }?>
      </div>
    </YP:list>



  </div>
</div>


<div class="clear"></div>





</div>



<!-- 效果图库 -->
<div class="xgtk">
<div class="auto">
    <div class="tkbt">
      <div class="tkbb">
        <a>效果图库</a>
        <span >已有<?php echo  M('Case')->where('catid=2')->order('hits desc')->limit('1000')->sum('hits') ?>位设计师找到灵感</span>
      </div>

      <div class="tkbb2">
        <ul id="tits" class="tits">
            <YP:list name="Label" where="genre=17" posid="1" id="r" order="listorder asc" limit="6" key="k">
                <li onmouseover="settab({$k})"  <?php if($k==1){ ?> class="cur"<?php } ?> >{$r['title']}</li>
            </YP:list>
            <a  href="index.php?m=Case&a=index&id=2" class="more">更多 ></a>
            <div style="clear:both;"></div>
        </ul>
      </div>
    </div>
    
    
 <div class="tknr">
<script type="text/javascript" src="../Public/js/public.js"></script><!-- 3图转换轮播 -->
<script type="text/javascript" src="../Public/js/myfloor.js"></script><!-- 3图转换轮播 -->

 <YP:list name="Label" where="genre=17" posid="1" order="listorder asc" id="val" key="key" limit="6">
       <div id="con_{$key}" class="con" name="{$val['title']}">

            <div class="tkdk">
<!--3图转换特效开始  -->


       <ul class="p_in_picul fl" >
           <?php $reluts=M('Case')->where('itemType='.$val['id'].' and status=1 and posid=1 and catid=2')->order("pos_time desc")->limit('3')->select();
           //echo M('Case')->getLastSql();exit;
           foreach($reluts as $k=>$r){
           ?>

          <?php $bigPic=' '; if($k==0){ $a=3; $bigPic=' bigPic';};if($k==1){ $a=55;};if($k==2){ $a=4;};?>

          <li class="p_in_li0{$k+1} {$bigPic}"    onclick="window.open(projectInit.do?STYLE_ID={$k})">
              <img  class="show" name="index.php?g=Home&m=Case&a=show&id=<?php echo $r['id']?>" src="<?php echo $r['pic']?>" alt="" width="590" height="300" />
                  <div class="p_in_pictext">
                      <p style="width: 460px;">
                      <?php echo $r['describe'] ?></p>
                      <!--<span class="p_in_sptext">
                          <span>
                              <?php echo $r['title']?>
                          </span>
                      </span>-->
                  </div>
          </li>
          <?php }?>

        </ul>

<!-- 结束 -->
            </div>

            <div class="tkdk" style="margin-right: 0px;">
<!--3图转换特效开始  -->
                <ul class="p_in_picul fl" >
                    <?php $reluts=M('Case')->where('itemType='.$val['id'].' and status=1 and posid=1 and catid=2')->order("pos_time desc")->limit('3,3')->select();
                    foreach($reluts as $k=>$r){
                    ?>

                    <?php $bigPic=' '; if($k==0){ $a=3; $bigPic=' bigPic';};if($k==1){ $a=55;};if($k==2){ $a=4;};?>

                    <li class="p_in_li0{$k+1} {$bigPic}"    onclick="window.open(projectInit.do?STYLE_ID={$k})">
                        <img  class="show" name="index.php?g=Home&m=Case&a=show&id=<?php echo $r['id']?>" src="<?php echo $r['pic']?>" alt="" width="590" height="300" />
                        <div class="p_in_pictext">
                            <p style="width: 460px;">
                                <?php echo $r['describe'] ?></p>
                      <!--<span class="p_in_sptext">
                          <span>
                              <?php echo $r['title']?>
                          </span>
                      </span>
                        </div>-->
                    </li>
                    <?php }?>

                </ul>

<!-- 结束 -->
            </div>
          </div>
        </YP:list>



    </div>

  </div>
</div>

<!-- 切换 -->




<div class="clear"></div>




<!-- 广告图 -->
<div class="ggt"> <YP:flash flashid="33" key="kid" /> </div>
<!-- 餐饮攻略 -->
<div class="auto">
    <div class="tkbt">
      <div class="tkbb">
        <a>餐饮资讯</a>
        <span>已有<?php echo  M('News')->where('catid in(14,15,16,17,18)')->order('hits desc')->limit('1000')->sum('hits'); ?>位业主学习到餐饮经营知识</span>
      </div>
    </div>
</div>

<div class="cygl">
  <div class="auto">
    <div class="strategy">
      <div class="hd" style="border-radius:0px">

        <ul>
          <li class="tit_1">
            <div class="cydw"><p>{$Categorys['14']['catname']}</p></div>
            <div id="cyxwzz">
                <YP:subcat  catid="14">
                 <span><a href="{$r.url}">{$r.catname}</a></span>
                </YP:subcat>

            </div>
          </li>
          <li class="tit_1">
            <div class="cydw2"><p>{$Categorys['15']['catname']}</p></div>
            <div id="cyxwzz2">
                <YP:subcat  catid="15">
                    <span><a href="{$r.url}">{$r.catname}</a></span>
                </YP:subcat>
            </div>
          </li>
        </ul>

      </div>
      <div class="bd">
        <ul>
          <li>
              <YP:list name="News" where="posid=1 and catid=16" order="pos_time desc" limit="5" key="k" id="r">
             <?php if($k==1){?>
              <a href="<?php echo $r['url']?>">
                    <div class="top" style="background:url('<?php echo $r['pic']?>') center no-repeat;">
                    <span><?php echo $Categorys['16']['catname'] ?></span><samp><?php echo $r['title']?></samp>
                </div>
              </a><?php }else{?>
              <p style=" background: url('../Public/images/x1.png') 0 40% no-repeat; "><a href="<?php echo $r['url']?>"><?php echo $r['title']?></a></p>
              <?php } ?>
              </YP:list>
          </li>
            <li>
                <YP:list name="News" where="posid=1 and catid=17" order="pos_time desc" limit="5" key="k" id="r">
                    <?php if($k==1){?>
                    <a href="<?php echo $r['url']?>">
                        <div class="top" style="background:url('<?php echo $r['pic']?>') center no-repeat;">
                            <span><?php echo $Categorys['17']['catname'] ?></span><samp><?php echo $r['title']?></samp>
                        </div>
                    </a><?php }else{?>
                    <p style=" background: url('../Public/images/x1.png') 0 40% no-repeat; "><a href="<?php echo $r['url']?>"><?php echo $r['title']?></a></p>
                    <?php } ?>
                </YP:list>
            </li>
            <li>
                <YP:list name="News" where="posid=1 and catid=18" order="pos_time desc" limit="5" key="k" id="r">
                    <?php if($k==1){?>
                    <a href="<?php echo $r['url']?>">
                        <div class="top" style="background:url('<?php echo $r['pic']?>') center no-repeat;">
                            <span><?php echo $Categorys['18']['catname'] ?></span><samp><?php echo $r['title']?></samp>
                        </div>
                    </a><?php }else{?>
                    <p style=" background: url('../Public/images/x1.png') 0 40% no-repeat; "><a href="<?php echo $r['url']?>"><?php echo $r['title']?></a></p>
                    <?php } ?>
                </YP:list>
            </li>
        </ul>
        <ul>
            <li>
                <YP:list name="News" where="posid=1 and catid=19" order="pos_time desc" limit="5" key="k" id="r">
                    <?php if($k==1){?>
                    <a href="<?php echo $r['url']?>">
                        <div class="top" style="background:url('<?php echo $r['pic']?>') center no-repeat;">
                            <span><?php echo $Categorys['19']['catname'] ?></span><samp><?php echo $r['title']?></samp>
                        </div>
                    </a><?php }else{?>
                    <p style=" background: url('../Public/images/x1.png') 0 40% no-repeat; "><a href="<?php echo $r['url']?>"><?php echo $r['title']?></a></p>
                    <?php } ?>
                </YP:list>
            </li>
            <li>
                <YP:list name="News" where="posid=1 and catid=20" order="pos_time desc" limit="5" key="k" id="r">
                    <?php if($k==1){?>
                    <a href="<?php echo $r['url']?>">
                        <div class="top" style="background:url('<?php echo $r['pic']?>') center no-repeat;">
                            <span><?php echo $Categorys['20']['catname'] ?></span><samp><?php echo $r['title']?></samp>
                        </div>
                    </a><?php }else{?>
                    <p style=" background: url('../Public/images/x1.png') 0 40% no-repeat; "><a href="<?php echo $r['url']?>"><?php echo $r['title']?></a></p>
                    <?php } ?>
                </YP:list>
            </li>
            <li>
                <YP:list name="News" where="posid=1 and catid=46" order="pos_time desc" limit="5" key="k" id="r">
                    <?php if($k==1){?>
                    <a href="<?php echo $r['url']?>">
                        <div class="top" style="background:url('<?php echo $r['pic']?>') center no-repeat;">
                            <span><?php echo $Categorys['21']['catname'] ?></span><samp><?php echo $r['title']?></samp>
                        </div>
                    </a><?php }else{?>
                    <p style=" background: url('../Public/images/x1.png') 0 40% no-repeat; "><a href="<?php echo $r['url']?>"><?php echo $r['title']?></a></p>
                    <?php } ?>
                </YP:list>
            </li>
        </ul>
      </div>
      <div class="clear"></div>
    </div>
    <script type="text/javascript">jQuery(".strategy").slide();</script>

  </div>
</div>




<!-- 餐饮设备 -->
<div class="auto">
  <div class="tkbt">
    <div class="tkbb">
      <a>餐饮设备</a>
      <span>已有<?php echo M('Product')->order('hits desc')->limit('1000')->sum('hits'); ?>位业主找到心仪家具</span>
    </div>
    <div class="tkbb3">
        <ul id="titssb" class="titssb">
            <YP:list name="Label" where="genre=20" posid="1" order="listorder asc" id="r" key="k" limit="6">
               <li  onmouseover="settabsb(<?php echo $k;?>)" >{$r['title']}</li>
            </YP:list>
            <a style="float: left;margin-right: 6px; font-size: 14px; height: 40px;  line-height: 35px;margin-top: 5px;
    text-align: center;" href="{$Categorys['6']['url']}" class="more">更多 ></a>
            <div style="clear:both;"></div>
        </ul>
    </div>
  </div>
</div>

<div class="cysb">
  <div class="auto">
<!-- 2 -->
    <div >

      <div class="sbb1"><!-- 供应商 -->
          <div class="picMarquee-top">
            <div class="tout" style="height:56px; background:url('../Public/images/sb1.png') center no-repeat;"></div>

            <div class="bd">
              <ul class="picList">

              <YP:list name="Brand" posid="1"  id="r">
                  <li>
                    <div class="pic"><a href="index.php?m=Product&a=index&id=6&brandid={$r['id']}" target="_blank"><img src="{$r['pic']}" alt="{$r['name']}" width="152" height="52" /></a></div>
                  </li>
              </YP:list>

              </ul>
            </div>

            <div class="toud"><img src="../Public/images/ssss.png" width="175" height="9"></div>
          </div>
         
      </div>

      <div class="sbb2"><!-- 轮播 -->
          <div class="slideBox2a" >
            <YP:flash flashid="36" key="kid" />
          </div>
      
      </div>
        <YP:list name="Label" where="genre=20" posid="1" order="listorder asc" id="v" key="k" limit="6">
            <ul class="sbb3" id="consb_<?php echo $k ?>"><!-- 产品 -->

                <?php $results=M('Product')->where('catid=6 and posid=1 and device='.$v['id'])->order('pos_time desc')->limit('4')->select();
                 foreach($results as $key=>$r){
                ?>
                    <li class="sb_lb">

                          <div class="sb_t" ><a href="{$r['url']}" target="_blank"><img src="{$r['pic']}" width="273" height="211"></a></div>
                          <div class="sb_wz" style="text-align:center">
                            <a href="{$r['url']}">{$r['title']|str_cut=###,26}</a>

                          </div>

                    </li>
                <?php }?>
            </ul>
        </YP:list>

      <div class="clear"></div>

    </div>

  </div>
</div>



<div class="clear"></div>



<!-- 最新动态 -->
<div class="zxdt">
  <div class="auto">
    <div class="tkbt">
      <div class="tkbb">
        <a>最新动态</a>
      </div>
    </div>

    <div class="dt_dk">
<!-- a -->
      <div class="dt_lb">
        <div class="dt_t">
          <ul id="titsdt" class="titsdt">
              <li onmouseover="settabdt(1)" class="cura"> 论坛精选</li>
              <li onmouseover="settabdt(2)">新闻动态</li>

              <div style="clear:both;"></div>
          </ul>
        </div>
    <!-- 论坛精选 -->
        <div id="condt_1">
          <div class="dt_nr">
            <YP:list name="Zforum_theme" where="posid=1" id="r" order="pos_time desc" limit="1">
            <div class="dnr_t"><img {if $r['pic']}src="{$r['pic']}"{else}src="../Public/images/oo1.png"{/if} width="150" height="105"></div>
            <div class="dnr_t2">
              <p><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,22}</a></p>
              {php $content=strip_tags($r['content']);}
              <span>{$content|str_cut=###,30}...</span>
              <a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">[阅读详细]</a>
            </div>
            </YP:list>
            <div class="dnr_t3">
              <ul>
               <YP:list name="Zforum_theme" where="posid=1" id="r" order="pos_time desc" limit="1,5">
                <li><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,42}</a></li>
               </YP:list>
              </ul>
            </div>
          </div>

          <div class="dt_t2"><a href="index.php?m=Zforum_theme&a=index&id=7">查看更多</a></div>
        </div>

    <!-- 新闻动态 -->
        <div id="condt_2" style="display:none;">
        <!-- <div id="condt_1"> -->
          <div class="dt_nr">
          <YP:list name="News" catid="8" id="r" order="listorder asc" limit="1">

            <div class="dnr_t"><img {if $r['pic']}src="{$r['pic']}"{else}src="../Public/images/oo1.png"{/if}  width="150" height="105"></div>
            <div class="dnr_t2">
              <p> <a href="{$r['url']}">{$r['title']|str_cut=###,38}</a></p>
              <span>{$r['description']|str_cut=###,48}</span>
              <a  href="{$r['url']}">[阅读详细]</a>
            </div>

          </YP:list>
            <div class="dnr_t3">
              <ul>
              <YP:list name="News" catid="8" id="r" order="listorder asc" limit="1,5">
                <li><a href="{$r['url']}">{$r['title']|str_cut=###,48}</a></li>
              </YP:list>
              </ul>
            </div>
          </div>

          <div class="dt_t2"><a href="{$Categorys['8']['url']}">查看更多</a></div>
        </div>


      </div>


<!-- a -->
      <div class="dt_lb">

        <div class="dt_t">
          <ul id="titsdt" class="titsdt">
              <li ><a >设计师访谈</a></li>
              <div style="clear:both;"></div>
          </ul>
        </div>
    <!-- 2 -->
        <div id="condt_1">

          <div class="dt_nr">
          <YP:list name="News" catid="9" id="r" order="listorder asc" limit="1">
            <div class="dnr_t"><img {if $r['pic']}src="{$r['pic']}"{else}src="../Public/images/oo1.png"{/if} width="150" height="105" ></div>
            <div class="dnr_t2">
              <a href="{$r['url']}"><p> {$r['title']|str_cut=###,38}</p></a>
              <span>{$r['description']|str_cut=###,48}</span>
              <a  href="{$r['url']}">[阅读详细]</a>
            </div>
          </YP:list>
            <div class="dnr_t3">
              <ul>
              <YP:list name="News" catid="9" id="r" order="listorder asc" limit="1,5">
                <li><a href="{$r['url']}">{$r['title']|str_cut=###,48}</a></li>
              </YP:list>
              </ul>
            </div>
          </div>

          <div class="dt_t2"><a href="{$Categorys['9']['url']}">查看更多</a></div>
        </div>


      </div>

<!-- a -->
      <div class="dt_lb" style="margin-right: 0px; ">

        <div class="dt_t">
          <ul id="titsdta" class="titsdt">
              <li onmouseover="settabdta(1)" class="cura"><a>装修问答</a></li>
              <li onmouseover="settabdta(2)">本周最热</li>
            <li onmouseover="settabdta(3)">等待回答</li>
              <div style="clear:both;"></div>
          </ul>
        </div>
    <!-- 2 -->
        <div id="condta_1" style=" overflow:hidden;">
          <div class="dt_nr" style="height:278px;">

           <YP:list name="Zforum_theme" where="plateid=2" id="r" order="id desc" limit="4">
            <div class="dt_wd">
              <div class="wdl"><p>{$r['reply_num']}</p><p>回答</p></div>
              <div class="wdr">
                <p><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,40}</a></p>
                 {php $zuihou=M('Zforum_reply')->where('theme_id='.$r['id'])->limit(1)->order("createtime desc")->select()}
                {if $zuihou}
                <a>{$zuihou[0]['username']} 回答：{$zuihou[0]['content']|str_cut=###,12}</a>
                <a style="float:right">{$zuihou[0]['createtime']|remianday=###}</a>
                {/if}
              </div>
            </div>
           </YP:list>






          </div>

        </div>

    <!-- 2 -->
        <div id="condta_2" style="display:none; height:300px; overflow:hidden;">
          <div class="dt_nr" style="height:277px;">
         <?php
          $date=time()-604800;
          $result=M("Zforum_theme")->field("*")->where("plateid=2 and lang=1 AND status=1 and createtime > ".$date)->order("hits desc")->limit("4")->select();foreach($result as $k=>$r){ ?>
            <div class="dt_wd">
              <div class="wdl"><p>{$r['reply_num']}</p><p>回答</p></div>
              <div class="wdr">
                <p><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,40}</a></p>
                 {php $zuihou=M('Zforum_reply')->where('theme_id='.$r['id'])->limit(1)->order("createtime desc")->select()}
                  {if $zuihou}
                    <a>{$zuihou[0]['username']} 回答：{$zuihou[0]['content']|str_cut=###,12}</a>
                    <a style="float:right">{$zuihou[0]['createtime']|remianday=###}</a>
                  {/if}
              </div>
            </div>
       <?php }?>

          </div>

        </div>
    <!-- 3 -->
        <div id="condta_3" style="display:none; height:300px; overflow:hidden;">
          <div class="dt_nr" style="height:277px;">
             {php $result=M("Zforum_theme")->field("*")->where("plateid=2 and lang=1 AND status=1 and reply_num=0")->order("hits desc")->limit("4")->select();foreach($result as $k=>$r):}
            <div class="dt_wd">
              <div class="wdl"><p>{$r['reply_num']}</p><p>回答</p></div>
              <div class="wdr">
                <p><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,40}</a></p>

              </div>
            </div>
       {php endforeach;}



          </div>

        </div>


          <div class="dt_t2"><a href="index.php?g=Home&m=Zforum_theme&a=forumlist&id=7&plateid=5">查看更多</a></div>
      </div>





    </div>

  </div>
</div>

<div class="clear"></div>
<!-- 广告图2 -->
<div class="ggt2a">
  <div class="auto">
    <div class="gg_t1"> <YP:flash flashid="34" key="kid" /> </div>
    <div class="gg_t2"> <YP:flash flashid="35" key="kid" /> </div>
  </div>
</div>

<div class="clear"></div>

<!-- 发布 -->
<div class="fb">
  <div class="auto">

<!-- a -->
    <div class="picScroll-top">
      <div class="hd">
                    <a>大家都在买的餐饮设备</a>
      </div>

      <div class="bd">
        <ul class="picList">
               <YP:list name="Zforum_theme" where="plateid=5" id="r" order="id desc" limit="15">
                        <?php $user=M('User')->where('id='.$r['userid'])->find();?>
                    <li>
                        <div class="pic"><a href="index.php?m=User&a=index&id={$user['id']}" target="_blank"><img class="yuan" src="{$user['avatar']}"  width="88" height="88" /></a></div>
                        <div class="title">
                        <h4><a href="index.php?g=Home&m=Zforum_reply&a=index&id={$r['id']}&plateid={$r['plateid']}">{$r['title']|str_cut=###,30}</a></h4>
                         {php $zuihou=M('Zforum_reply')->where('theme_id='.$r['id'])->limit(1)->order("createtime desc")->select()}
                    {if $zuihou}
                        <a  target="_blank">回答：{$zuihou[0]['content']|str_cut=###,20}</a>
                        <span>{$zuihou[0]['createtime']|remianday=###}</span>
                    {/if}
                        </div>
                    </li>
               </YP:list>

        </ul>
                    <div class="fb_jz"><a href="index.php?g=Home&m=Zforum_theme&a=forumlist&id=7&plateid=5">去餐饮设备频道逛逛</a> </div>
      </div>
    </div>
<!-- b -->

        <div class="picScroll-top" style="margin:0 2.5%">
            <div class="hd">
                    <a>大家都在发布需求</a>
            </div>

            <div class="bd">
                <ul class="picList">
                   <YP:list name="Guestbook" status="1" order="id desc" limit="20" id="r">

                       <li>
                        <div class="titles">
                        <p><a href="index.php?m=Guestbook&a=show&id={$r['id']}">{$r['title']}提交了设计需求</a></p>
                        <p><a href="index.php?m=Guestbook&a=show&id={$r['id']}">{$r['itemArea']}{$r['itemType']}设计</a><samp>{if $r['budget']=='无预算' || empty($r['budget']) }无{else}￥{$r['budget']}{/if}</samp></p>
                        {$r['bprovince']|jgarea=###} {$r['bcity']|jgarea=###}
                                <span>{$r['createtime']|date="Y-m-d",###}</span>
                        </div>
                    </li>
                   </YP:list>

                </ul>
                    <div class="fb_jz"><a href="index.php?g=user&m=Guestbookadd&a=add">提交我的设计需求</a> </div>
            </div>
        </div>
<!-- c -->
        <div class="picScroll-top">
            <div class="hd">
                    <a>大家都在预约设计师</a>
            </div>

            <div class="bd">
                <ul class="picList">
                   <YP:list name="Guestbook" status="1" where="typeid=1" order="id desc" limit="20" id="r">


                    <li>
                       <?php $user=M('User')->where('id='.$r['sjsid'])->find();?>
                        <div class="pic"><a href="index.php?m=User&a=index&id={$user['id']}" target="_blank"><img class="yuan" src="{$user['avatar']}"  width="88" height="88"/></a></div>
                        <div class="title">
                        <h4>{$r['title']}预约了{$r['sjsname']}做设计</h4>
                       {$r['bprovince']|jgarea=###} {$r['bcity']|jgarea=###}    <samp>|</samp>     {$r['itemType']}     <samp>|</samp>     {$r['itemArea']}
                                <p>{$r['createtime']|remianday=###}</p>
                        </div>
                    </li>
                    </YP:list>



                </ul>
               <div class="fb_jz"><a href="index.php?m=Yuyue&a=index&id=4">去找设计师</a> </div>
            </div>

        </div>



  </div>
</div>



<div class="clear"></div>
<div class="suspend">
 <div  id="a" class="none">
   <div style="width:1100px; height:130px; text-align:center;  padding:20px; margin:0 auto ">
     <div style=" width:150px; height:100%; float:left; "><img src="../Public/images/fan.png"/>     </div>
     <div style=" width:220px; height:100%; float:left;  padding:35px;  ">
      <span style="color:#FF0; font-size:16px;"><span style=" font-size:36px; font-weight: bold;" >提交设计需求</span><br />找到真正的餐饮空间设计高手</span>
     </div>

     <form name="form1" id="myform1" action="{:U('User/Guestbook/insert')}"  method="post">
         <input name="modulename" type="hidden" value="Guestbook"/>
          <input  name="sjsid" id="sjs"  type="hidden" value="{$designid}"/>
         <input  name="mobileyzm" class="verify"  type="hidden" value=" "/>
         <div class="text_dd">
             <div class="text_tc" >
                 <ul >
                     <li><input class="chengh"  type="text" name="title" id="user_tc" placeholder="您的称呼" value=""/></li>
                     <li><input class="chengh " type="text" name="telephone" id="telephone_tc"  placeholder="手机号码" value=""/></li>
                 </ul>
                 <ul >
                     <li class="area_tc">
                         <select  class="wz_r2" name="bprovince" id="province" onchange="area_change(this.value, 1,'province','city','area');" class="selt mr5" >
                             <option value="0">省份</option>
                         </select>
                         <select class="wz_r2" name="bcity" onchange="area_change(this.value, 2,'province','city','area');" id="city" class="selt mr5" >
                             <option value="0">城市</option>
                         </select>

                         <script>
						 area_change(0, 0,'province','city','area',0,0,0);</script>
                     </li>

                     <li class="submit_tc"><input name="myform1"  type="button" onclick="bbb('myform1')" value="立即提交"/></li>
                 </ul>

             </div>
         </div>
     </form>
        <div style=" width:100px; height:100px;; float:left; margin-top:14px; margin-left:100px; "><YP:flash flashid="38" key="kid" />     </div>
        <div  id="can" style=" width:25px; height:26px;; float:left; cursor:pointer;margin-left:50px; color:#FFF; "><img  src="./Public/Images/stop.png" width="24" height="24"/></div>
   </div>
</div>
  <div id="out_kai" class="out">
     <div style="color:#FFF; font-size:16px; font-weight:bold; margin-top:150px; margin-left:45px;">提交需求</div>
  </div>
</div>

<script>
settac('1');

settabsb('1');
</script>
<script>
function settab(n){
  tli=document.getElementById('tits').getElementsByTagName("li");
  for(i=0;i<tli.length;i++){
    k=i+1
    if (k==n){
      tli[i].className="cur";
      document.getElementById('con_'+k).style.display="";
    }else{
      tli[i].className="";
      document.getElementById('con_'+k).style.display="none";
    }
  }
}
</script>

<script language="javascript" type="text/javascript">
    $(document).ready(function(){
        settab('1');
        $(".show").click(function(){
            var url=($(this).attr('name'));
            location.href = url;
        });



    })

$('#time_up').change(function(){ 
	
	  var t=$("#time_up").val();  //时间
	  var l=22-t;
	  var i=1;
	  var html='';
	  
	  for(i=1;i<=l;i++){
		  var n=parseInt(t)+parseInt(i);
		  html+='<option value="'+n+'">'+ n +':00</option>';
		  }
		 $("#time_mp").html(html);   
	})
</script>